function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 54);

T = model_6_IRFs.dynamic_resid_tt(T, y, x, params, steady_state, it_);

TEFD_fdd_9_1 = jacob_element('int_prod_disp',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4),params(10)*y(17)});
T(22) = TEFD_fdd_9_1;
TEFD_fdd_9_2 = jacob_element('int_prod_disp',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4),params(10)*y(17)});
T(23) = TEFD_fdd_9_2;
TEFD_fdd_9_11 = jacob_element('int_prod_disp',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4),params(10)*y(17)});
T(24) = TEFD_fdd_9_11;
TEFD_fdd_9_13 = jacob_element('int_prod_disp',13,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4),params(10)*y(17)});
T(25) = TEFD_fdd_9_13;
TEFD_fdd_1_1 = jacob_element('int_profit',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(26) = TEFD_fdd_1_1;
TEFD_fdd_1_2 = jacob_element('int_profit',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(27) = TEFD_fdd_1_2;
TEFD_fdd_1_11 = jacob_element('int_profit',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(28) = TEFD_fdd_1_11;
TEFD_fdd_2_1 = jacob_element('int_money',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(29) = TEFD_fdd_2_1;
TEFD_fdd_2_2 = jacob_element('int_money',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(30) = TEFD_fdd_2_2;
TEFD_fdd_2_11 = jacob_element('int_money',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(31) = TEFD_fdd_2_11;
TEFD_fdd_3_1 = jacob_element('int_liq',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(32) = TEFD_fdd_3_1;
TEFD_fdd_3_2 = jacob_element('int_liq',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(33) = TEFD_fdd_3_2;
TEFD_fdd_3_11 = jacob_element('int_liq',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(34) = TEFD_fdd_3_11;
TEFD_fdd_3_16 = jacob_element('int_liq',16,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(35) = TEFD_fdd_3_16;
T(36) = getPowerDeriv(T(8),(params(3)-1)/params(3),1);
TEFD_fdd_4_1 = jacob_element('int_surplus',1,{y(36)/y(2),1,y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(12),params(4)});
T(37) = TEFD_fdd_4_1;
TEFD_fdd_4_3 = jacob_element('int_surplus',3,{y(36)/y(2),1,y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(12),params(4)});
T(38) = TEFD_fdd_4_3;
TEFD_fdd_4_12 = jacob_element('int_surplus',12,{y(36)/y(2),1,y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(12),params(4)});
T(39) = TEFD_fdd_4_12;
TEFD_fdd_6_1 = jacob_element('int_partial',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(40) = TEFD_fdd_6_1;
TEFD_fdd_6_2 = jacob_element('int_partial',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(41) = TEFD_fdd_6_2;
TEFD_fdd_6_11 = jacob_element('int_partial',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(42) = TEFD_fdd_6_11;
TEFD_fdd_6_16 = jacob_element('int_partial',16,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(12),params(13),params(14),params(4),y(36)/y(2)});
T(43) = TEFD_fdd_6_16;
TEFD_fdd_7_1 = jacob_element('int_acquisition',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(44) = TEFD_fdd_7_1;
TEFD_fdd_7_2 = jacob_element('int_acquisition',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(45) = TEFD_fdd_7_2;
TEFD_fdd_7_11 = jacob_element('int_acquisition',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(13),params(14),params(4)});
T(46) = TEFD_fdd_7_11;
TEFD_fdd_8_1 = jacob_element('int_2nd_price',1,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4)});
T(47) = TEFD_fdd_8_1;
TEFD_fdd_8_2 = jacob_element('int_2nd_price',2,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4)});
T(48) = TEFD_fdd_8_2;
TEFD_fdd_8_11 = jacob_element('int_2nd_price',11,{y(47),y(24),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(5),params(4)});
T(49) = TEFD_fdd_8_11;
T(50) = (-y(36))/(y(2)*y(2));
T(51) = 1/y(2);
TEFD_fdd_0_1 = jacob_element('int_capital',1,{y(47),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(13),params(14)});
T(52) = TEFD_fdd_0_1;
TEFD_fdd_5_1 = jacob_element('average_log_normal',1,{y(48),params(20),params(21)});
T(53) = TEFD_fdd_5_1;
T(54) = y(33)*getPowerDeriv(y(54),1-params(3),1);

end
